<%@page pageEncoding="UTF-8" isELIgnored="false"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="f" uri="http://www.slim3.org/functions"%>
<%@ taglib prefix="m" uri="http://taglibs.mobylet.org/" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<m:charset/>" />
<title>なかまちず</title>
<c:import url="/jsp/pc/keyword.jsp"/>
<link rel="stylesheet" type="text/css" href="/css/global.css" />
<style type="text/css">
  html { overflow: auto; }
  html, body, td, th { font-family: Arial, sans-serif; margin: 0px; padding: 0px; height: 100%; font-size: 10pt; color: #333333; }
  .text { font-family: Arial, sans-serif; margin: 0px; padding: 0px 10px; height: 100%; font-size: 10pt; color: #333333; }
  #map { position: absolute; top: 30px; left: 10px; width: 600px; height: 450px;}
  #map img { cursor: crosshair; }
  img { border: 0px; }
  form { margin: 0; padding: 0; font-family: Arial, sans-serif; font-size: 10pt; }
  input, textarea { margin: 3px 0 0 0; padding: 0; font-family: Arial, sans-serif; font-size: 10pt; }
  #side_bar { position: absolute; top: 6px; left: 620px; border: 1px solid #666; padding: 5px; line-height: 1.8; overflow:auto; background: url(/icon/white70per.png); width: 150px; height: 462px; }
  #header { background-color: #ffffff; position:absolute; top: 6px; left: 10px; z-index: 99; width: 592px; padding: 2px 4px; overflow: hidden; }
  div.errors { color: red; font-weight: bold; position: absolute; top: 35px; left: 15px; border: 1px solid #666; padding: 0px 5px; overflow:auto; background: url(/icon/white70per.png); width: 300px; height: 60px; }
  #main { background-color: #ffffff; font-size: 10pt; position: relative; top: 0px; left: 0px; border: 0px solid #666; }
  #body { background-color: #ffffff; font-size: 10pt; border: 1px solid #666; width: 763px; padding: 2px 4px; margin: 10px;}
  #help { background-color: #ffffff; font-size: 10pt; width: 759px; height: 120px; padding: 2px 4px; margin: 10px; border: 3px solid #99b3cc; }
  #copy { font-size: 8pt; position: absolute; top: 490px; left: 650px; }
  #footer { font-size: 10pt; margin: 10px;}
  .mailAddress { text-decoration: underline; cursor: pointer; margin: 1px 5px; }
  .require { color: red; font-weight: bold; }
</style>
</head>
<body>

<div id="body"><!-- start body -->

<c:if test="${!empty errors}">
<p style="font-weight: bold; margin: 10px;">いくつかのエラーが発生しました。下記メッセージを確認してください。</p>
<ul style="color: red; font-weight: bold;">
<c:forEach var="e" items="${f:errors()}">
 <li>${f:h(e)}</li>
</c:forEach>
</ul>
</c:if>

<c:if test="${!empty messages}">
<ul style="color: blue; font-weight: bold;">
<c:forEach var="m" items="${messages}">
 <li>${f:h(m)}</li>
</c:forEach>
</ul>
</c:if>

<h1>お問い合わせフォーム</h1>

<p><span class="require">※</span>は必須項目です。</p>
<form name="contactForm" action="/contact" method="post">

<table>
 <tr>
  <td width="160"><h2>件名<span class="require">※</span></h2></td>
  <td><input type="text" size="50" class="${f:errorClass("subject", "err")}" ${f:text("subject")}/></td>
 </tr>
 <tr>
  <td><h2>返信先メールアドレス<span class="require">※</span></h2></td>
  <td><input type="text" size="50" class="${f:errorClass("mailAddress", "err")}" ${f:text("mailAddress")}/></td>
 </tr>
 <tr>
  <td valign="top"><h2>内容<span class="require">※</span></h2></td>
  <td><textarea cols="80" name="body" rows="10" class="${f:errorClass("body", "err")}">${f:h(body)}</textarea></td>
 </tr>
 <tr>
  <td colspan="2" align="center"><input type="submit" name="cmd_confirm" value="送信内容を確認する"/></td>
 </tr>
</table>

</form>

</div><!-- end body -->

<div id="footer"><!-- footer start -->

<p><a href="http://www.nakamachizu.com">なかまちずへ戻る</a></p>

</div><!-- footer end -->

<c:import url="/jsp/pc/analytics.jsp"/>
</body>
</html>